using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Marlimer.Common;
using CrystalDecisions.CrystalReports.Engine;

namespace Marlimer.Logical.Formularios
{
    public partial class frm_VistaPrevia : Form
    {
        ReportDocument reporte;

        public frm_VistaPrevia(ReportDocument objrpt)
        {
            InitializeComponent();
            this.reporte = objrpt;
            crpReporte.ReportSource = reporte;
        }

        private void tstComandos_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            int indice = tstComandos.Items.IndexOf(e.ClickedItem);
            switch (indice)
            {
                case 0:     //exportar
                    {
                        Util.exportReporte(reporte); 
                        break; 
                    }
            }
            
        }
    }
}